package com.woniuxy.rabbit.controller;

import com.woniuxy.rabbit.simple.Producter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: 15489  <br/>
 * Date: 2022/4/6:14:54  <br/>
 * Description:
 */

@RestController
@RequestMapping("/rabbit")
public class RabbitController {
    @Resource
    private Producter producter;
    @GetMapping("/start")
    public  void start(String msg){
        producter.send(msg);
    }
}
